package iqaUI.domain;

public class Answer implements Comparable<Answer>{

    private String question;
    private String answer;
    private String score;

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }


    @Override
    public int compareTo(Answer answer) {
        return Integer.valueOf(answer.getScore()).intValue() - Integer.valueOf(this.score).intValue();
    }
}
